//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;


int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	int x, y;
	char a[6][4]={"1/6","1/3","1/2","2/3","5/6","1/1"};
	scanf("%d%d", &x, &y);
	printf("%s",a[6-(x>y?x:y)]);
	return 0;
}
